const state = {
    loading: false,
}

const mutations = {
    changeLoading(state, status) {
        state.loading = status
    }
}

const actions = {
    setLoading({ commit }, status) {
        commit('changeLoading', status)
    }
}

const getters = {
    loading: state => state.loading,
}

export default {
    state,
    mutations,
    actions,
    getters
}